<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="head.jsp"></jsp:include>
<script type="text/javascript" src="<%=path %>/js/jefBoxPager.js"></script>
<title>${systemInfo.systemName} - Powered By Jeasyframe.org</title>
<script type="text/javascript">
	
	$(function(){
		var hideWidth="0.001px";
		if($.browser.msie){
			hideWidth="1px";
		}
		$("#tableButton").css({"width":hideWidth});
		$("#btnUser").hover(function(){
			$("#tableButton").animate({"width":"230px"},300,function(){
				$("#tableButton >:first").fadeIn(100);
			});
		},function(){});
		$("#tableTopRight").hover(function(){},function(){
			$("#tableButton >:first").stop().hide();
			$("#tableButton").animate({"width":hideWidth},300,function(){
				$("#tableButton >:first").hide();
			});
		});
		//查询代办事件待审批列表
		$.ajax({
			url			:"<%=path%>/workflow/workflowAjax_ApprovalPending_listApprovalPendingAction.action",
			type		:"POST",
			dataType	:"json",
			success		:function(data){
				//调用分页控件
				$('#backlog').jefBoxPager({
					left:10,
					top:40,
					path:'<%=path%>',
					data:data
				});
			},
			error		:function(){
			}
		});
		
		var version="${sessionScope.sessionUser.updateLogVersion}";
		var adminId="${sessionScope.sessionUser.userId}";
		if(version!="0" || adminId=="1"){
			openModelWindow("更新日志","<%=path%>/updatelog/updatelog_queryList_showAction.action");
		}
		
	});
	
	function changeInfo(keyId){
		openModelWindow("编辑个人资料","<%=path%>/user/user_toEdit_infoAction.action?userId="+keyId);
	}
</script>
<style>
.box_top_left {
	float: left;
	height: 80px;
	width: 380px;
	display: block;
	background-image: url(${sessionScope.systemInfo.systemLogo});
	background-repeat: no-repeat;
	background-position: 0px 10px;
}
</style>
</head>

<body class="default_bg">
<div class="deauft_box">
	<div class="box_top">
    	<span class="box_top_left"></span><span class="box_top_right" style="width:400px;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tableTopRight">
  <tr>
  	<td rowspan="2" style="padding-top:1px;">
  	<div style="background-color:gray;text-align:center;float:right;display: block;width:1px;height:41px;" id="tableButton">
		<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;" height="41">
			<tr>
				<td valign="middle" align="center">
					<span title="修改密码" onclick="changePassword();" style="width:80px;display: block;padding:5px;font-size:14px;cursor: pointer;background: white;font-weight:bolder">修改密码</span>
				</td>
				<td valign="middle" align="center">
					<span title="退出系统" onclick="logout();" style="width:80px;display: block;padding:5px;font-size:14px;cursor: pointer;background: white;font-weight:bolder">退出系统</span>
				</td>
			</tr>
		</table> 
  	</div>
  	</td>
    <td width="41" rowspan="2"><a href="javascript:void(0)" id="btnUser"><img src="images/user_pic.gif" width="41" height="41" /></a></td>
    <td width="5" rowspan="2">&nbsp;</td>
    <td width="60" height="25" align="left" style="font-size:16px; font-weight:bolder; color:#FFF">${sessionScope.sessionUser.loginName}</td>
  </tr>
  <tr>
    <td height="20" align="left" style="color:#FFF;">${sessionScope.sessionRoleNames}</td>
    </tr>
</table>
</span>
    </div>
  <div class="main_main">
  	<div class="main_left">
    	<ul>
        	<li><a href="javascript:void(0);" onclick="changeInfo(${sessionScope.sessionUser.userId})" style=" background-color:#044889; width:342px; height:145px; padding-top:20px; padding-left:10px;">

            	<span style="font-size:16px; margin-bottom:10px;">${sessionScope.sessionUser.realName}(FY号：${sessionScope.sessionUser.userNo})</span>
                <span>欢迎使用${systemInfo.systemName}</span>
                <span>您的职位是 ${sessionScope.sessionUser.position.positionName}</span>
                <span style="margin-top:43px; margin-bottom:0px;">个人信息</span>


</a></li>
	<li><a href="<%=path %>/main_info.action?parentMenuId=34" style="background-color:#e61400; background-image:url(images/ico/rss.png); background-repeat: no-repeat; background-position:40px 30px;">通知公告(${announcementCount})</a></li>
            <li><a href="<%=path %>/main_info.action?parentMenuId=36" style="background-color:#5333ae; background-image:url(images/ico/mail.png); background-repeat: no-repeat; background-position:40px 30px;"">我的消息(${messageCount})</a></li>
        
             </ul>
        <ul>
		
		<li><a id="backlog" style="background-color:#8dc027; width:342px; height:145px; padding-top:20px; padding-left:10px;">
               <div style="cursor: pointer;">自定义模块</div>
			</a></li>
			<li><a id="boardtopic" style=" background-color:#f1960a; width:342px; height:145px; padding-top:20px; padding-left:10px;">
                 <div style="cursor: pointer;">自定义模块</div>
			</a></li>

            </ul>
        <ul>
        	<li><a href='javascript:openModelWindow("更新日志","<%=path%>/updatelog/updatelog_queryList_showAction.action");' style="background-color:#5333ae; background-image:url(images/ico/ge.png); background-repeat: no-repeat; background-position:40px 30px;"">更新日志</a></li>
            <li><a href="#" style="background-color:#1E90FF;background-image:url(images/ico/pen.png); background-repeat: no-repeat; background-position:40px 30px;"">自定义模块</a></li>
            <li><a href="#" style="background-color:#696969; background-image:url(images/ico/my.png); background-repeat: no-repeat; background-position:40px 30px;">自定义模块</a></li>
            <li onclick="openAppsBox()"><a href="javascript:void(0);" style="background-color:#349933; background-image:url(images/ico/apps.png); background-repeat: no-repeat; background-position:40px 30px;">快捷菜单</a></li>
        </ul>
    </div>
    <div class="main_right">
    	<c:forEach items="${parentMenuList}" var="menu" varStatus="status">
    		<a class="main_right_cell rightMenu" style="background-image: url(images/${menu.menuIcon} );" href="<%=path %>/main_info.action?parentMenuId=${menu.menuId}">${menu.menuName}</a>
    	</c:forEach>
    </div>
        <div style="clear:both;padding-top:4%;color:#FFF;font-weight: bold;">Copyright ©2012-2014 Jeasyframe.org Corporation, All Rights Reserved.</div>
  </div>
</div>
</body>
</html>

